public  class Cow extends Animals{
    public Cow(String name, int id)
    {
        super(name,id);
    }

    @Override
    public void eat() {
        System.out.println("eat grass");
    }

    @Override
    public void sleep() {
        System.out.println("I'm sleeping");
    }

    @Override
    public void introduction() {
        System.out.println("My name is:"+name);
    }
    public String shout()
    {
        return "mou..";
    }
public String toString()
{
    return name+id;
}

}



